<div id="main-alt">

<ul class="tab_nav" id="tab_nav">
  <li><a href="#file_page" class="active">File</a></li>
</ul>
<div id="wikiContent">
<div id="file_page">
<h2><%=title "File: #{h(@<%= file_name %>_asset.file.filename)}" %></h2>
<h3>Uploaded by: <%= link_to(@<%= file_name %>_asset.user.name, user_path(@<%= file_name %>_asset.user.id)) %></h3>

<span class="image fileIcon <%= @<%= file_name %>_asset.file.extension%>Icon">
  <span id="downloadLink">
  <%= link_to("Download", @<%= file_name %>_asset.file.url) %>
  <% if  @<%= file_name %>_asset.caption and @<%= file_name %>_asset.caption.size > 0 %>
  <br/><%=h @<%= file_name %>_asset.caption %><br/>
  <% end %>
  
  <!-- file stats -->
  <small>
  <% size = @<%= file_name %>_asset.file.size.to_f/100.0 %>
  (<%= size > 1000 ? "#{number_with_precision(size/1000.0,2)} MB" : "#{number_with_precision(size, 2)} KB"  %>)   
  </small>
</span>
</span>
</div><!-- end image_page -->

</div><!-- end wikiContent -->
</div><!-- end main -->


<div id="secondary-alt">
  <%= render :partial => '<%= file_name %>_pages/<%= file_name %>_navigation' %>
</div>